package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.UserBaseInfo;
import com.caigou.bean.cms.param.UsersUpdateParam;
import com.caigou.bean.param.StaffManageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserBaseInfoMapper {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(UserBaseInfo record);

    UserBaseInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserBaseInfo record);

    UserBaseInfo findUserBaseInfoByUserId(String userid);

    List<UserBaseInfo> findStaffByParam(StaffManageParam param);

    UserBaseInfo findStaffByStaffId(String staffId);

    UserBaseInfo findStaffByPhoneNumber(String phoneNumber);

    List<UserBaseInfo> findUserBaseInfoByUserIds(@Param("userIds") List<String> userIds);

    UserBaseInfo findStaffByRealName(String realName);

    String loadUserIdByName(@Param("realName") String realName);

    String loadUserIdByPinyin(@Param("realName") String realName);

    String loadUserName(@Param("userId") String userId);

    UserBaseInfo findTopUser();

    Integer updateStaffTel(UsersUpdateParam param);
}
